Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LLHD] Fix misprint in llhd-desequentialize pass #7985

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

AndreyVV-100
Copy link
Contributor

Closes #7963

@AndreyVV-100 AndreyVV-100 marked this pull request as draft December 13, 2024 08:15
Copy link
Member

@maerhart maerhart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, thanks! 🎉

llvm Outdated Show resolved Hide resolved
// CHECK: [[V0:%.+]] = llhd.prb [[CLK]]
// CHECK: [[V1:%.+]] = seq.to_clock [[V0]]
// CHECK: [[V2:%.+]] = comb.xor [[V0]], %true{{.*}}
// CHECK: [[V3:%.+]] = seq.compreg %false{{.*}}, [[V1]] reset [[V2]], %false{{.*}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: this is currently incorrect as it should be an async reset, but seq.compreg does not support that (we need a register in the seq dialect that supports that without having the FIRRTL specific parts of firreg).
No need to change anything in this PR.

@AndreyVV-100 AndreyVV-100 force-pushed the fix-llhd-desequentialize branch from bb4bb03 to 95561ce Compare December 13, 2024 09:14
@AndreyVV-100 AndreyVV-100 marked this pull request as ready for review December 13, 2024 09:15
Copy link
Member

@maerhart maerhart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have commit access or do you want me to merge it?

@AndreyVV-100
Copy link
Contributor Author

Do you have commit access or do you want me to merge it?

Not yet. May you merge it?

@maerhart maerhart merged commit 54d3dd0 into llvm:main Dec 13, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[LLHD] Segmentation fault in Desequentialization Pass
2 participants